import { h } from 'vue';
import { NTag } from 'naive-ui';

export const columns = [
  {
    width: 80,
    title: '用户名',
    key: 'name',
  },
  {
    width: 80,
    title: '昵称',
    key: 'nickName',
  },
  {
    width: 180,
    title: '邮箱',
    key: 'email',
  },
  {
    title: '用户菜单',
    key: 'menus',
    render(row) {
      console.log("row", row)
      let menus = '';
      row.menus.forEach(r => menus += (r + " "));
      return h('div',{}, menus)
    }
  },
  {
    width: 160,
    title: '注册时间',
    key: 'registerTime',
  },
];
